2.2.4. Response
Response:
{
"status": "success" | "error", // Status of the response
"code": "integer", // Error code
"message": "string", // Error message, optional
"orders": [
{
"docID": "string", // Document UID
"parentDocID": "string", // UID of the sales document for processing return document, mandatory for returns
"isOrder": "boolean", // true for pre-orders, optional
"docTime": "string", // Date and time of document creation, format: yyyy-MM-dd hh:mm:ss
"docNumber": "string", // Document number in the accounting system
"amount": "integer", // Document amount in kopecks
"currency": "string", // Currency name
"items": [
{
"recID": "string", // Record code in the order reception system
"itemID": "string", // Product/service code in the order reception system
"itemName": "string", // Product/service name
"itemCode": "string", // External code, classification code, optional
"itemUnit": "string", // Measurement unit, optional
"itemQty": "integer", // Quantity*1000
"itemAmount": "integer", // Amount to be paid in kopecks
"discount": "integer", // Discount amount in kopecks, optional
"itemTaxes": [
{
"taxName": "string", // Tax name
"taxCode": "string", // Tax symbol (if used), optional
"taxPrc": "integer", // Tax percentage*100
"calcType": "integer" // Tax calculation type, possible values:
// 1 – inclusive
// 2 – fixed (excise amount*quantity of goods)
// 3 – simplified (percentage of sales amount)
// Default value - 1
},
...
],
"modifiers": [
{
"name": "string", // Modifier name
"unit": "string", // Unit name
"qty": "integer", // Quantity*1000
"notes": "string" // Notes
},
...
]
},
...
],
"payments": [
{
"payID": "string", // Payment ID in the order reception system
"code": "string", // Payment type code
"amount": "integer", // Payment amount in kopecks
"transID": "string" // Transaction number for electronic payments
},
...
],
"clientName": "string", // Client name, optional
"clientPhone": "string", // Client phone number, optional
"clientAddress": "string" // Client address, optional
},
...
]
}